#include "Rp2MaterialState.h"

using namespace Rp2;

RP2_IMPLEMENT_INITIALIZE(MaterialState);
RP2_IMPLEMENT_TERMINATE(MaterialState);

//---------------------------------------------------------------------------------------------------
MaterialState::MaterialState()
    :
    Emissive(0.0f,0.0f,0.0f),
    Ambient(0.2f,0.2f,0.2f),
    Diffuse(0.8f,0.8f,0.8f),
    Specular(0.0f,0.0f,0.0f)
{
    Alpha = 1.0f;
    Shininess = 1.0f;		
}
//---------------------------------------------------------------------------------------------------
MaterialState::~MaterialState()
{
}
//---------------------------------------------------------------------------------------------------
void MaterialState::Initialize()
{
	DefaultStates[MATERIAL] = new MaterialState;
}
//---------------------------------------------------------------------------------------------------
void MaterialState::Terminate()
{
	DefaultStates[MATERIAL] = 0;
}
//---------------------------------------------------------------------------------------------------